package org.sws.domain.credit.service;

import org.sws.domain.credit.model.entity.CreditAccountEntity;
import org.sws.domain.credit.model.entity.TradeEntity;

/**
 * @Author sws
 * @Date 2025/4/1 15:47
 * @description: 积分调额服务
 */
public interface ICreditAdjustService {
    /**
     * 创建增加积分额度订单
     * @param tradeEntity 交易实体对象
     * @return 单号
     */
    String createCreditOrder(TradeEntity tradeEntity);

    /**
     * 查询用户积分账户
     * @param userId 用户ID
     * @return 积分账户实体对象
     */
    CreditAccountEntity queryUserCreditAccount(String userId);
}
